package com.chuangke;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动器
 * 
 * @author chuangke
 * @date Oct 29, 2018
 */
//@EnableDiscoveryClient

@EnableAsync
@EnableCaching
@EnableScheduling
@EnableAspectJAutoProxy(exposeProxy = true,proxyTargetClass = true)
@EnableTransactionManagement
@SpringBootApplication(scanBasePackages = { "com.chuangke" })
public class ChuangkeAdminApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(ChuangkeAdminApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(ChuangkeAdminApplication.class);
	}
}
